package org.opencare.ndwc.persistence;

import java.util.List;

import org.opencare.ndwc.model.Event;
import org.opencare.ndwc.model.GlobalEvent;
import org.springframework.dao.DataAccessException;

public interface EventDao {
	
    public Event find(Long id) throws DataAccessException;
	
    public Long countAllEvent() throws DataAccessException;
    public Long countAllGlobalEvent() throws DataAccessException;
    
	public List<Event> findAll() throws DataAccessException;
	public List<Event> findAll(int start, int limit) throws DataAccessException;
	public List<GlobalEvent> findAllGlobalEvent(int start, int limit) throws DataAccessException;
	
    public void save(Event event) throws DataAccessException;

    public void remove(Long id) throws DataAccessException;
    
    public void removeAll() throws DataAccessException;

}
